var o = getApp();

Page({
    data: {
        module1: {},
        module2: [],
        module3: [],
        income_name_text: ""
    },
    onLoad: function(o) {
        o.id && this.setData({
            orderID: o.id
        });
    },
    onReady: function() {},
    onShow: function() {
        this.init();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    init: function() {
        var t = this, n = {
            log_id: this.data.orderID
        }, e = o.getNetAddresss("plugin.micro.frontend.controllers.MicroShopBonusLog.detail");
        o._getNetWork({
            url: e,
            data: n,
            success: function(o) {
                var n = o.data;
                1 == n.result ? t.setData({
                    module1: n.data.log.module1,
                    module2: n.data.log.module2,
                    module3: n.data.log.module3
                }) : wx.showToast({
                    title: n.msg,
                    icon: "none",
                    duration: 1e3
                });
            },
            fail: function(o) {
                console.log(o);
            }
        });
    }
});